<form class="layui-form model-form" action="">
    <input name="id" id="id" type="hidden" value="{$info.id|default=0}">
        
    <div class="layui-form-item">
        <label class="layui-form-label">模板名称：</label>
        <div class="layui-input-block">
            <input name="title" value="{$info['title']|default=''}" lay-verify="required" autocomplete="off" placeholder="请输入模板名称" class="layui-input" type="text">
    
        </div>
    </div>       
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">模板类型：</label>
            <div class="layui-input-inline">
                {common:select param="type|0|模板类型|name|id" data="1=公司缴纳-办登转达函,2=客户自缴-办登转达函,3=年费转达函"  value="isset($info['type'])?$info['type']:1"}                
            </div>
        </div>     
    </div>     
    <div class="layui-form-item">
        <label class="layui-form-label">上传模板：</label>
        <div class="layui-input-block">
             {upload:file name="url|模板|1|docx|''" 
            fileName="isset($info['title']) ? $info['title'] : ''" 
            filePath="isset($info['url']) ? $info['url'] : ''"}
        </div>
    </div>
        
    {widget:submit name="submit|立即保存,close|关闭"}
</form>